var d = document.getElementsByClassName("demo")[0].innerText;
console.log(d);